Optimal. Leaf size=54 \[ \frac{x (b c-a d) \, _2F_1\left (1,\frac{1}{m-n};1+\frac{1}{m-n};-\frac{c x^{m-n}}{d}\right )}{c d}+\frac{a x}{c} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0497989, antiderivative size = 54, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 4, integrand size = 25, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.16, Rules used = {1593, 1584, 388, 245} \[ \frac{x (b c-a d) \, _2F_1\left (1,\frac{1}{m-n};1+\frac{1}{m-n};-\frac{c x^{m-n}}{d}\right )}{c d}+\frac{a x}{c} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 1593
Rule 1584
Rule 388
Rule 245
Rubi steps
\begin{align*} \int \frac{a x^m+b x^n}{c x^m+d x^n} \, dx &=\int \frac{x^n \left (b+a x^{m-n}\right )}{c x^m+d x^n} \, dx\\ &=\int \frac{b+a x^{m-n}}{d+c x^{m-n}} \, dx\\ &=\frac{a x}{c}-\frac{(-b c+a d) \int \frac{1}{d+c x^{m-n}} \, dx}{c}\\ &=\frac{a x}{c}+\frac{(b c-a d) x \, _2F_1\left (1,\frac{1}{m-n};1+\frac{1}{m-n};-\frac{c x^{m-n}}{d}\right )}{c d}\\ \end{align*}
Mathematica [A] time = 0.0192134, size = 52, normalized size = 0.96 \[ \frac{x \left ((b c-a d) \, _2F_1\left (1,\frac{1}{m-n};1+\frac{1}{m-n};-\frac{c x^{m-n}}{d}\right )+a d\right )}{c d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F] time = 0.767, size = 0, normalized size = 0. \begin{align*} \int{\frac{a{x}^{m}+b{x}^{n}}{c{x}^{m}+d{x}^{n}}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} -{\left (b c - a d\right )} \int \frac{x^{m}}{c d x^{m} + d^{2} x^{n}}\,{d x} + \frac{b x}{d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left (\frac{a x^{m} + b x^{n}}{c x^{m} + d x^{n}}, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{a x^{m} + b x^{n}}{c x^{m} + d x^{n}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{a x^{m} + b x^{n}}{c x^{m} + d x^{n}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]